<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <title>课程报名留言</title>
</head>
<body>
<div>
    <div><h3 align="center">留言管理</h3></div>
    <div><a style="float: right;padding-right:100px;margin-top: -40px;" th:href="@{/admin/logout}">退出登录</a></div>
</div>

<div align="center" style="clear: both;">
    <table cellspacing="1" cellpadding="0" style="background:#a9c6c9;align-content: center">
        <thead>
        <tr>
            <th style="background:#FFF;padding: 3px;padding-top: 8px">序号</th>
            <th style="background:#FFF">留言内容</th>
            <th style="background:#FFF" width="170px">时间</th>
            <th style="background:#FFF">操作</th>
        </tr>
        </thead>
        <tbody th:remove="all-but-first">
        <tr th:each="item:${list}">
            <td style="background:#FFF; padding: 3px;padding-top: 8px" align="center" th:text="${item.id}"></td>
            <td style="background:#FFF; padding: 3px;" th:utext="${item.content}"></td>
            <td style="background:#FFF; padding: 3px;" width="170px"
                th:text="${#dates.format(item.createTime, 'yyyy-MM-dd hh:mm:ss')}"></td>
            <td style="background:#FFF; padding: 3px;" align="center"><a
                    th:href="@{/admin/delete(id=${item.id})}">删除</a></td>
        </tr>
        </tbody>
    </table>
</div>


</body>
</html>